package com.robot.mannge.common.result;

import lombok.Data;

/**
 * @Author: Smile
 * @Date: 2024/01/29/16:15
 * @Description:
 */
public enum ResultCode implements IErrorCode{

    /**
     * 返回值状态枚举
     */

    SUCCESS(200,"请求成功"),
    ERROR(500,"请求错误"),
    NO_LOGIN(401,"暂未登录或token已经过期"),
    NO_PRO(402,"没有权限访问"),

    LONGIN_EXPIRE(601,"账户过期"),

    USER_PASSWORD_ERROR(602,"用户名或密码错误"),

    PASSWORD_EXPIRE(603,"密码过期"),

    DisableUser(604,"账户禁用"),

    NONEUSER(605,"账户不存在");



    private long code;

    private String message;


    @Override
    public Long code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }

    private ResultCode(long code, String message) {
        this.code = code;
        this.message = message;
    }
}
